import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
 

//蛋糕页面的路由地址
{
  path: '/Home',
  name: 'Home',
  component:()=>import("../views/ddgHD/Home.vue")
},
{
  path: '/crowd',
  name: 'crowd',
  component:()=>import("../components/ddgHD/crowd.vue")
},
{
  path: '/cywh',
  name: 'Cywh',
  component:()=>import("../components/ddgHD/cywh.vue")
},
{
  path: '/xsqg',
  name: 'Xsqg',
  component:()=>import("../components/ddgHD/xsqg.vue"),
  children:[
    {
      path: '/xsqga',
      name: 'Xsqga',
      component:()=>import("../components/ddgHD/xsqga.vue")
    },
    {
      path: '/xsqgb',
      name: 'Xsqgb',
      component:()=>import("../components/ddgHD/xsqgb.vue")
    },
  ]
},
{
  path: '/citys',
  name: 'Citys',
  component:()=>import("../components/ddgHD/citys.vue")
},
{
  path: '/sliderinfo',
  name: 'Sliderinfo',
  component:()=>import("../components/ddgHD/sliderinfo.vue"),
  children:[
    {
      path: '/twoa',
      name: 'Twoa',
      component:()=>import("../components/ddgHD/twoa.vue")
    },
    {
      path: '/twob',
      name: 'Twob',
      component:()=>import("../components/ddgHD/twob.vue")
    },
    {
      path: '/twoc',
      name: 'Twoc',
      component:()=>import("../components/ddgHD/twoc.vue")
    },
  ]
},
{
  path: '/sliderinfo1',
  name: 'Sliderinfo1',
  component:()=>import("../components/ddgHD/sliderinfo1.vue")
},
{
  path: '/sliderinfo2',
  name: 'Sliderinfo2',
  component:()=>import("../components/ddgHD/sliderinfo2.vue")
},
{
  path: '/sliderinfo3',
  name: 'Sliderinfo3',
  component:()=>import("../components/ddgHD/sliderinfo3.vue")
},
{
  path: '/sonpopular',
  name: 'Sonpopular',
  component:()=>import("../components/ddgHD/sonpopular.vue")
},
{
  path: '/xq',
  name: 'Xq',
  component:()=>import("../components/ddgHD/xq.vue")
},



{
  path: '/details',
  name: 'Details',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/details.vue')
},
{
  path: '/brand',
  name: 'Brand',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand2',
  name: 'Brand2',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand2.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era2',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc2',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd2',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand3',
  name: 'Brand3',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand3.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era3',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc3',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd3',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand4',
  name: 'Brand4',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand4.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era4',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc4',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd4',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand5',
  name: 'Brand5',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand5.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era5',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc5',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd5',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand6',
  name: 'Brand6',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand6.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era6',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc6',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd6',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand7',
  name: 'Brand7',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand7.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era7',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc7',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd7',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/today',
  name: 'Today',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/today.vue')
},
{
  path: '/all',
  name: 'All',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/all.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'erx',
      name: 'Erx',
      component: () => import('../views/cakeCC/er/erx.vue'),
    },
    {
      path: 'ery',
      name: 'Ery',
      component: () => import('../views/cakeCC/er/ery.vue'),
    },
    {
      path: 'erz',
      name: 'Erz',
      component: () => import('../views/cakeCC/er/erz.vue'),
    }
  ]
},
{
  path: '/brandlist',
  name: 'Brandlist',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brandlist.vue')
},
{
  path: '/city',
  name: 'City',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/city.vue')
}, {
  path: '/',
  name: 'Home',
  component:()=>import("../views/ddgHD/Home.vue")
},
{
  path: '/crowd',
  name: 'crowd',
  component:()=>import("../components/ddgHD/crowd.vue")
},
{
  path: '/cywh',
  name: 'Cywh',
  component:()=>import("../components/ddgHD/cywh.vue")
},
{
  path: '/xsqg',
  name: 'Xsqg',
  component:()=>import("../components/ddgHD/xsqg.vue"),
  children:[
    {
      path: '/xsqga',
      name: 'Xsqga',
      component:()=>import("../components/ddgHD/xsqga.vue")
    },
    {
      path: '/xsqgb',
      name: 'Xsqgb',
      component:()=>import("../components/ddgHD/xsqgb.vue")
    },
  ]
},
{
  path: '/citys',
  name: 'Citys',
  component:()=>import("../components/ddgHD/citys.vue")
},
{
  path: '/sliderinfo',
  name: 'Sliderinfo',
  component:()=>import("../components/ddgHD/sliderinfo.vue"),
  children:[
    {
      path: '/twoa',
      name: 'Twoa',
      component:()=>import("../components/ddgHD/twoa.vue")
    },
    {
      path: '/twob',
      name: 'Twob',
      component:()=>import("../components/ddgHD/twob.vue")
    },
    {
      path: '/twoc',
      name: 'Twoc',
      component:()=>import("../components/ddgHD/twoc.vue")
    },
  ]
},
{
  path: '/sliderinfo1',
  name: 'Sliderinfo1',
  component:()=>import("../components/ddgHD/sliderinfo1.vue")
},
{
  path: '/sliderinfo2',
  name: 'Sliderinfo2',
  component:()=>import("../components/ddgHD/sliderinfo2.vue")
},
{
  path: '/sliderinfo3',
  name: 'Sliderinfo3',
  component:()=>import("../components/ddgHD/sliderinfo3.vue")
},
{
  path: '/sonpopular',
  name: 'Sonpopular',
  component:()=>import("../components/ddgHD/sonpopular.vue")
},
{
  path: '/xq',
  name: 'Xq',
  component:()=>import("../components/ddgHD/xq.vue")
},



{
  path: '/details',
  name: 'Details',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/details.vue')
},
{
  path: '/brand',
  name: 'Brand',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand2',
  name: 'Brand2',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand2.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era2',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc2',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd2',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand3',
  name: 'Brand3',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand3.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era3',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc3',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd3',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand4',
  name: 'Brand4',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand4.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era4',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc4',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd4',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand5',
  name: 'Brand5',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand5.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era5',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc5',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd5',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand6',
  name: 'Brand6',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand6.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era6',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc6',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd6',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/brand7',
  name: 'Brand7',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brand7.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'era',
      name: 'Era7',
      component: () => import('../views/cakeCC/er/era.vue'),
    },
    {
      path: 'erc',
      name: 'Erc7',
      component: () => import('../views/cakeCC/er/erc.vue'),
    },
    {
      path: 'erd',
      name: 'Erd7',
      component: () => import('../views/cakeCC/er/erd.vue'),
    }
  ]
},
{
  path: '/today',
  name: 'Today',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/today.vue')
},
{
  path: '/all',
  name: 'All',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/all.vue'),
  children:[
    // 配置二级路由的规则（同一级路由）
    {
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      // path不加/path不加/path不加/path不加/path不加/
      path: 'erx',
      name: 'Erx',
      component: () => import('../views/cakeCC/er/erx.vue'),
    },
    {
      path: 'ery',
      name: 'Ery',
      component: () => import('../views/cakeCC/er/ery.vue'),
    },
    {
      path: 'erz',
      name: 'Erz',
      component: () => import('../views/cakeCC/er/erz.vue'),
    }
  ]
},
{
  path: '/brandlist',
  name: 'Brandlist',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/brandlist.vue')
},
{
  path: '/city',
  name: 'City',
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  component: () => import('../views/cakeCC/city.vue')
},














  // 礼品页面的路由
  {
    path: '/strategy:xiaoming',
    name: 'Strategy',
    component: () =>
        import ('../views/lp/strategy.vue')
},
  {
    path: "/Bestie",
    name: "Bestie",
    component: () => import("../views/lp/business.vue"),
  },
    {
        path: '/boyf',
        name: 'Boyf',
        component: () =>
            import ('../views/lp/boyf.vue')
    },
    {
        path: '/elder',
        name: 'Elder',
        component: () =>
            import ('../views/lp/elder.vue')
    },
    {
        path: '/fashion',
        name: 'Fashion',
        component: () =>
            import ('../views/lp/fashion.vue')
    },
    {
        path: '/food',
        name: 'Food',
        component: () =>
            import ('../views/lp/food.vue')
    },
    {
        path: '/friend',
        name: 'Friend',
        component: () =>
            import ('../views/lp/friend.vue')
    },
    {
        path: '/girlf',
        name: 'Girlf',
        component: () =>
            import ('../views/lp/girlf.vue')
    },
    {
        path: '/husband',
        name: 'Husband',
        component: () =>
            import ('../views/lp/husband.vue')
    },
    {
        path: '/luck',
        name: 'Luck',
        component: () =>
            import ('../views/lp/luck.vue')
    },
    {
        path: '/news',
        name: 'News',
        component: () =>
            import ('../views/lp/news.vue')
    },
    {
        path: '/originality',
        name: 'Originality',
        component: () =>
            import ('../views/lp/originality.vue')
    },
    {
        path: '/selected',
        name: 'Selected',
        component: () =>
            import ('../views/lp/selected.vue')
    },
    {
        path: '/selfsupport',
        name: 'Selfsupport',
        component: () =>
            import ('../views/lp/selfsupport.vue')
    },
    {
        path: '/skin',
        name: 'Skin',
        component: () =>
            import ('../views/lp/skin.vue')
    },
    
    {
        path: '/topbar',
        name: 'Topbar',
        component: () =>
            import ('../components/lp/topbar.vue')
    },
    {
        path: '/giftitem',
        name: 'Giftitem',
        component: () =>
            import ('../components/lp/giftitem.vue')
    },
    {
        path: '/giftlist',
        name: 'Giftlist',
        component: () =>
            import ('../components/lp/giftlist.vue')
    },
 

//鲜花页面
{
  path: '/flower',
  name: 'Flower',
  component: () =>
      import ('../views/flower/flower.vue')
},
{
  path: '/flowertype',
  name: 'Flowertype',
  component: () =>
      import ('../views/flower/flowertype.vue')
},
{
  path: '/flowerinfo',
  name: 'Flowerinfo',
  component: () =>
      import ('../views/flower/flowerinfo.vue')
},
{
  path: '/newbag',
  name: 'Newbag',
  component: () =>
      import ('../views/flower/newbag.vue')
},
{
  path: '/discuss',
  name: 'Discuss',
  component: () =>
      import ('../views/flower/discuss.vue')
},
{
  path: '/scrollinfo',
  name: 'Scrollinfo',
  component: () =>
      import ('../views/flower/scrollinfo.vue')
},
{
  path: '/brand',
  name: 'Brand',
  component: () =>
      import ('../views/flower/brand.vue'),
  children: [{
          path: '/brand/era',
          name: 'Era',
          component: () =>
              import ('../views/flower/list/era.vue')
      },
      {
          path: '/brand/erc',
          name: 'Erc',
          component: () =>
              import ('../views/flower/list/erc.vue')
      },
      {
          path: '/brand/erd',
          name: 'Erd',
          component: () =>
              import ('../views/flower/list/erd.vue')
      }
  ]
},


















  //我的页面的路由地址
  {
    path: "/My",
    name: "My",
    component: () => import("../views/my/amy.vue"),
    beforeEnter: (to, from, next) => {
      var username = localStorage.getItem("token");
      if (username) {
        console.log(username);
        next("/Mycontent");
      } else {
        if (to.path == "/Denglu") {
          next();
        } else {
          next("/Denglu");
        }
      }
    },
  },
  {
    path: "/Mycontent",
    name: "Mycontent",
    component: () => import("../views/my/Mycontent.vue"),
  },

  {
    path: "/Setup",
    name: "Setup",
    component: () => import("../views/my/setup.vue"),
  },

  {
    path: "/Denglu",
    name: "Denglu",
    component: () => import("../views/my/denglu.vue"),
    children: [
      {
        path: "/Dengphone",
        name: "Dengphone",
        component: () => import("../views/my/dengphone.vue"),
      },
      {
        path: "/DAccountLogin",
        name: "DAccountLogin",
        component: () => import("../views/my/dAccountLogin.vue"),
      },
    ],
  },
  {
    path: "/Zhuce",
    name: "Zhuce",
    component: () => import("../views/my/zhuce.vue"),
  },
  {
    path: "/Shopingcar",
    name: "Shopingcar",
    component: () => import("../views/my/shopingcar.vue"),
  },

  {
    path: '/',
    name: 'Home',
    component:()=>import("../views/ddgHD/Home.vue")
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
